package com.eyas.software.pattern.eventbus.dispatcher;

import com.eyas.software.pattern.eventbus.event.Event;
import com.eyas.software.pattern.eventbus.register.Register;

/**
 * event分发器
 */
public interface Dispatcher {
    /**
     * 分发event的逻辑，可以是同步分发或者异步分发等
     * @param register
     * @param event
     */
    void dispatch(Register register, Event event);
}
